/**
 * Created by zby on 2018/4/22.
 */

import java.io.*;

public class Judge {
    public String judge(String answer, int tr, int su) throws IOException {
        FileReader fr = new FileReader("answer.txt");
        BufferedReader re = new BufferedReader(fr);
        String answers = re.readLine();


        String a;
        if (answer.equals(answers)) {

            System.out.println("正确");


            tr = tr + 1;
            su = su + 1;

            a = tr + "/" + su;
            System.out.println(a);

        } else {

            System.out.println("错误     正确答案：" + answer);


            System.out.println();

            su = su + 1;

            a = tr + "/" + su;
            System.out.println(a);
        }
        return a;
    }
}

